参数收集清单-添加数据导出功能
This commit is contained in:
@@ -421,6 +421,7 @@ module.exports = {
|
|||||||
MessageNotification: 'Message Notification',
|
MessageNotification: 'Message Notification',
|
||||||
SeeMore: 'See More',
|
SeeMore: 'See More',
|
||||||
OperationSuccessful: 'Operation Successful',
|
OperationSuccessful: 'Operation Successful',
|
||||||
|
Intheexport: 'In The Export...',
|
||||||
OperationFailed: 'Operation Failed',
|
OperationFailed: 'Operation Failed',
|
||||||
PersonnelSelection: 'Select ',
|
PersonnelSelection: 'Select ',
|
||||||
EmployeeNumber: 'Employee ID',
|
EmployeeNumber: 'Employee ID',
|
||||||
|
|||||||
@@ -426,6 +426,7 @@ module.exports = {
|
|||||||
MessageNotification: '消息通知',
|
MessageNotification: '消息通知',
|
||||||
SeeMore: '查看更多',
|
SeeMore: '查看更多',
|
||||||
OperationSuccessful: '操作成功',
|
OperationSuccessful: '操作成功',
|
||||||
|
Intheexport: '导出中...',
|
||||||
operationFailed: '操作失败',
|
operationFailed: '操作失败',
|
||||||
PersonnelSelection: '人员选择',
|
PersonnelSelection: '人员选择',
|
||||||
EmployeeNumber: '员工号',
|
EmployeeNumber: '员工号',
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="Virtual-detail-header" style="position: fixed;top: 0">
|
<div class="Virtual-detail-header" style="position: fixed;top: 0">
|
||||||
<div class="Virtual-detail-title">
|
<div class="Virtual-detail-title">
|
||||||
<span>
|
<span>
|
||||||
{{$t('ParameteItemCollectionList')}}(Model - year market)——{{$t(this.paramsManifest.title)}}
|
{{$t('ParameteItemCollectionList')}}({{$t(this.$route.query.projectName)}})——{{$t(this.paramsManifest.title)}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -108,10 +108,10 @@
|
|||||||
<!-- // R&H Manager manager-->
|
<!-- // R&H Manager manager-->
|
||||||
<!-- // 系统管理员 admin-->
|
<!-- // 系统管理员 admin-->
|
||||||
<!-- // 游客 guest-->
|
<!-- // 游客 guest-->
|
||||||
<a-popconfirm overlayClassName='popconfirm' placement="bottomRight" v-if='currentPersonRole == "homo"'>
|
<a-popconfirm overlayClassName='popconfirm' placement="bottomRight" v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
|
||||||
<template slot="title" id="popconfirm">
|
<template slot="title" id="popconfirm">
|
||||||
<!-- 添加-->
|
<!-- 添加-->
|
||||||
<div @click="handleAdd" class="operator-text-title">
|
<div @click="handleAdd" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
<a-icon type="plus"/>
|
<a-icon type="plus"/>
|
||||||
{{$t('addTo')}}
|
{{$t('addTo')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -120,18 +120,24 @@
|
|||||||
<!-- <a-icon type="solution"/>-->
|
<!-- <a-icon type="solution"/>-->
|
||||||
<!-- {{$t('distributionAndCollection')}}-->
|
<!-- {{$t('distributionAndCollection')}}-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
|
<!-- 导出-->
|
||||||
|
<div @click="handleExport" class="operator-text-title"
|
||||||
|
v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
|
||||||
|
<a-icon type="export"/>
|
||||||
|
{{$t('export')}}
|
||||||
|
</div>
|
||||||
<!-- 一键下发收集 -->
|
<!-- 一键下发收集 -->
|
||||||
<div @click="defOneclickCollection" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
<div @click="defOneclickCollection" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
<a-icon type="solution"/>
|
<a-icon type="solution"/>
|
||||||
{{$t('OneclickCollection')}}
|
{{$t('OneclickCollection')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- 冻结配置-->
|
<!-- 冻结配置-->
|
||||||
<div @click="freezeConfiguration" class="operator-text-title">
|
<div @click="freezeConfiguration" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
<a-icon type="solution"/>
|
<a-icon type="solution"/>
|
||||||
{{$t('FreezeConfiguration')}}
|
{{$t('FreezeConfiguration')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- 同步上报库 -->
|
<!-- 同步上报库 -->
|
||||||
<div @click="handleSynchronousReportLibraryJurisdiction" class="operator-text-title">
|
<div @click="handleSynchronousReportLibraryJurisdiction" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
<a-icon type="setting"/>
|
<a-icon type="setting"/>
|
||||||
{{$t('SynchronousReportLibrary')}}
|
{{$t('SynchronousReportLibrary')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -141,16 +147,16 @@
|
|||||||
<!-- {{$t('TaskCutOffTime')}}-->
|
<!-- {{$t('TaskCutOffTime')}}-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- 批量删除-->
|
<!-- 批量删除-->
|
||||||
<div @click="handleDelJurisdiction" class="operator-text-title">
|
<div @click="handleDelJurisdiction" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
<a-icon type="delete"/>
|
<a-icon type="delete"/>
|
||||||
{{$t('BatchDelete')}}
|
{{$t('BatchDelete')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="bringInTheProjectInterfaceClick" class="operator-text-title">
|
<div @click="bringInTheProjectInterfaceClick" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
<a-icon type="profile"/>
|
<a-icon type="profile"/>
|
||||||
{{$t('bringInTheProjectInterface')}}
|
{{$t('bringInTheProjectInterface')}}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="operator-text" style="position: relative">
|
<div class="operator-text" style="position: relative " @click='morepop' v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
|
||||||
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
|
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
|
||||||
</div>
|
</div>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
@@ -192,12 +198,7 @@
|
|||||||
<a-icon type="delete"/>
|
<a-icon type="delete"/>
|
||||||
{{$t('CompulsoryWithdrawal')}}
|
{{$t('CompulsoryWithdrawal')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- 导出-->
|
|
||||||
<div @click="handleExport" class="operator-text"
|
|
||||||
v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
|
|
||||||
<a-icon type="export"/>
|
|
||||||
{{$t('export')}}
|
|
||||||
</div>
|
|
||||||
<!-- 角色切换 -->
|
<!-- 角色切换 -->
|
||||||
<div class="operator-text"
|
<div class="operator-text"
|
||||||
v-if="!this.$route.query.it"
|
v-if="!this.$route.query.it"
|
||||||
@@ -808,14 +809,26 @@
|
|||||||
},
|
},
|
||||||
//导出
|
//导出
|
||||||
handleExport(){
|
handleExport(){
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
console.log(this.$route.query)
|
||||||
let query = {
|
let long = localStorage.getItem('language')
|
||||||
...this.queryParam,
|
this.cut = ''
|
||||||
...this.queryParamQuery,
|
if (long && long === 'zh-cn') {
|
||||||
ids: selectedRowKeys.join(','),
|
this.cut = 'cn'
|
||||||
dummyInventoryBaseId: this.$route.query.id
|
} else if (long && long === 'en-us') {
|
||||||
|
this.cut = 'en'
|
||||||
}
|
}
|
||||||
downloadFile(this.url.exportData, this.$route.query.name + this.$t('VirtualList') + '.zip', query, this.Deselect)
|
let query = {
|
||||||
|
paramsManifestId: this.paramsManifest.id,
|
||||||
|
paramsTemplateId: this.$route.query.paramsTemplateId,
|
||||||
|
paramsTemplatePublishVersion:1,
|
||||||
|
cut: this.cut,
|
||||||
|
exportName:this.$route.query.projectName + '(' + this.$route.query.title + ')'
|
||||||
|
}
|
||||||
|
console.log(query)
|
||||||
|
getAction('/params/collectManifest/exportAll', query).then((res) => {
|
||||||
|
this.$message.success(this.$t('Intheexport'))
|
||||||
|
this.textLoading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 高级搜索
|
// 高级搜索
|
||||||
handleSuperQuery(params, matchType) {
|
handleSuperQuery(params, matchType) {
|
||||||
|
|||||||
@@ -255,7 +255,9 @@
|
|||||||
localStorage.setItem('paramsManifest', JSON.stringify(item))
|
localStorage.setItem('paramsManifest', JSON.stringify(item))
|
||||||
let newUrl = _this.$router.resolve({
|
let newUrl = _this.$router.resolve({
|
||||||
path: '/ParameterItemCollection',
|
path: '/ParameterItemCollection',
|
||||||
query: item
|
query: item
|
||||||
|
// projectName:this.$route.query.projectName
|
||||||
|
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
window.open(newUrl.href, '_blank')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user