参数导出模板添加适用地区;法规清单导出 名称修改

This commit is contained in:
zyx.net
2022-12-27 15:06:45 +08:00
parent bd41476912
commit 850b208aa2
3 changed files with 39 additions and 3 deletions
@@ -81,6 +81,20 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text"
:title="$t('zoneOfApplication')">{{$t('zoneOfApplication')}}</span>
</div>
<a-form-model-item class="itemModel">
<j-dict-select-tag class="box-input" v-model="formInline.region"
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
:type="'select'"
:triggerChange="false" :dictCode="'region'"/>
</a-form-model-item>
</div>
</a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
</a-form> </a-form>
@@ -12,6 +12,17 @@
v-model="queryParam.templateName"></a-input> v-model="queryParam.templateName"></a-input>
</div> </div>
</a-col> </a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('zoneOfApplication')">
<span>{{$t('zoneOfApplication')}}</span>
</div>
<j-dict-select-tag class="box-input" v-model="queryParam.region"
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
:type="'select'"
:triggerChange="false" :dictCode="'region'"/>
</div>
</a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button> <a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
@@ -162,6 +173,13 @@ export default {
width: 300, width: 300,
scopedSlots: { customRender: 'projectName' } scopedSlots: { customRender: 'projectName' }
}, },
{
title: this.$t('zoneOfApplication'),
align: 'center',
dataIndex: 'region_dictText',
ellipsis: true,
width: 200
},
{ {
title: this.$t('status'), title: this.$t('status'),
align: 'center', align: 'center',
@@ -989,6 +989,7 @@
detailedSuccessList: [], detailedSuccessList: [],
detailedWarningList: [], detailedWarningList: [],
rowKeysSuccessList: [], rowKeysSuccessList: [],
selectedRowKeysList: [],
rowKeysWarningList: [] rowKeysWarningList: []
} }
}, },
@@ -1121,7 +1122,8 @@
} else if (selectedRowKeys.length > 1) { } else if (selectedRowKeys.length > 1) {
this.$message.warning(this.$t('OnlyOneSelected')) this.$message.warning(this.$t('OnlyOneSelected'))
} else { } else {
downloadFile(this.url.ExportReportUrl, this.$t('listOfRegulations') + this.$t('ExportReport') + '.docx', { id: selectedRowKeys.join(',') }) let serialNumber = this.selectedRowKeysList[0].serialNumber
downloadFile(this.url.ExportReportUrl, this.$t('listOfRegulations') + this.$t('ExportReport') + '-' + serialNumber + '.docx', { id: selectedRowKeys.join(',') })
} }
}, },
handleExport() { handleExport() {
@@ -1140,9 +1142,10 @@
ids: selectedRowKeys.join(','), ids: selectedRowKeys.join(','),
...this.queryParamQuery, ...this.queryParamQuery,
roleCode: roleCodeIndex, roleCode: roleCodeIndex,
excelName:this.$route.query.projectName,
projectLibraryId: this.$route.query.id projectLibraryId: this.$route.query.id
} }
downloadFile(this.url.exportData, this.$route.query.projectName + this.$t('listOfRegulations') + '.zip', query, this.Deselect) downloadFile(this.url.exportData, this.$route.query.projectName + '.zip', query, this.Deselect)
}, },
//复制 //复制
copyClick() { copyClick() {
@@ -1454,8 +1457,9 @@
} }
}) })
}, },
onSelectChange(value) { onSelectChange(value,rows) {
this.selectedRowKeys = value this.selectedRowKeys = value
this.selectedRowKeysList = rows
}, },
searchQuery() { searchQuery() {
this.selectedRowKeys = [] this.selectedRowKeys = []