对接导出报告
This commit is contained in:
@@ -889,4 +889,5 @@ module.exports = {
|
|||||||
Pending:'Pending',
|
Pending:'Pending',
|
||||||
custom:'Custom',
|
custom:'Custom',
|
||||||
notSelected:'Not selected',
|
notSelected:'Not selected',
|
||||||
|
ExportReport:'Export Report',
|
||||||
}
|
}
|
||||||
@@ -894,4 +894,5 @@ module.exports = {
|
|||||||
Pending:'待处理',
|
Pending:'待处理',
|
||||||
custom:'自定义',
|
custom:'自定义',
|
||||||
notSelected:'未选择',
|
notSelected:'未选择',
|
||||||
|
ExportReport:'导出报告',
|
||||||
}
|
}
|
||||||
@@ -5,35 +5,35 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('standard')">
|
<div class="title-text" :title="$t('standard')">
|
||||||
<span>{{ $t('standard') }}</span>
|
<span>{{ $t('standard') }}</span>
|
||||||
|
</div>
|
||||||
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
||||||
|
v-model="queryParam.serialNumber"></j-input>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
</a-col>
|
||||||
v-model="queryParam.serialNumber"></j-input>
|
<a-col :md="6" :sm="8">
|
||||||
</div>
|
<div class="box-title-text">
|
||||||
</a-col>
|
<div class="title-text" :title="$t('title')">
|
||||||
<a-col :md="6" :sm="8">
|
<span>{{ $t('title') }}</span>
|
||||||
<div class="box-title-text">
|
</div>
|
||||||
<div class="title-text" :title="$t('title')">
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
||||||
<span>{{ $t('title') }}</span>
|
v-model="queryParam.title"></j-input>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
</a-col>
|
||||||
v-model="queryParam.title"></j-input>
|
<a-col :md="6" :sm="8">
|
||||||
</div>
|
<div class="box-title-text">
|
||||||
</a-col>
|
<div class="title-text" style="width: 44px" :title="$t('subtitle')">
|
||||||
<a-col :md="6" :sm="8">
|
<span>{{ $t('subtitle') }}</span>
|
||||||
<div class="box-title-text">
|
</div>
|
||||||
<div class="title-text" style="width: 44px" :title="$t('subtitle')">
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('subtitle')"
|
||||||
<span>{{ $t('subtitle') }}</span>
|
v-model="queryParam.subtitle"></j-input>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('subtitle')"
|
</a-col>
|
||||||
v-model="queryParam.subtitle"></j-input>
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
</div>
|
|
||||||
</a-col>
|
|
||||||
<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">
|
||||||
<globalAdvancedQuery ref="globalAdvancedQueryRef"
|
<globalAdvancedQuery ref="globalAdvancedQueryRef"
|
||||||
@handleSuperQuery="handleSuperQuery"
|
@handleSuperQuery="handleSuperQuery"
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
@click="searchReset">{{ $t('reset') }}</a-button>
|
@click="searchReset">{{ $t('reset') }}</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</span>
|
</span>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-operator" style="overflow:hidden;">
|
<div class="table-operator" style="overflow:hidden;">
|
||||||
@@ -88,6 +88,10 @@
|
|||||||
<a-icon type="user"/>
|
<a-icon type="user"/>
|
||||||
{{ $t('bringInRelevantPersonnel') }}
|
{{ $t('bringInRelevantPersonnel') }}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="operator-text-title" @click="ExportReportClick">
|
||||||
|
<a-icon type="user"/>
|
||||||
|
{{ $t('ExportReport') }}
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="operator-text" style="position: relative">
|
<div class="operator-text" style="position: relative">
|
||||||
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
|
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
|
||||||
@@ -653,7 +657,7 @@
|
|||||||
queryParam: {},
|
queryParam: {},
|
||||||
url: {
|
url: {
|
||||||
addModelList: '/project/projectLawsInventoryEO/queryPageDummy',
|
addModelList: '/project/projectLawsInventoryEO/queryPageDummy',
|
||||||
queryConditionInventory:'/project/projectLawsInventoryEO/queryConditionInventory',
|
queryConditionInventory: '/project/projectLawsInventoryEO/queryConditionInventory',
|
||||||
list: '/project/projectLawsInventoryEO/list',
|
list: '/project/projectLawsInventoryEO/list',
|
||||||
addModel: 'project/projectLawsInventoryEO/add',
|
addModel: 'project/projectLawsInventoryEO/add',
|
||||||
editModel: '/project/projectLawsInventoryEO/edit',
|
editModel: '/project/projectLawsInventoryEO/edit',
|
||||||
@@ -667,7 +671,8 @@
|
|||||||
exportData: '/project/projectLawsInventoryEO/exportData',
|
exportData: '/project/projectLawsInventoryEO/exportData',
|
||||||
setBatch: '/project/projectLawsInventoryEO/setBatch',//批量设置
|
setBatch: '/project/projectLawsInventoryEO/setBatch',//批量设置
|
||||||
copyUrl: '/project/projectLawsInventoryEO/copyInfoByIds',//复制
|
copyUrl: '/project/projectLawsInventoryEO/copyInfoByIds',//复制
|
||||||
transferUrl: '/project/projectLawsInventoryEO/getPageInfoDummy'//调取
|
transferUrl: '/project/projectLawsInventoryEO/getPageInfoDummy',//调取
|
||||||
|
ExportReportUrl: '/project/projectLawsInventoryEO/downloadDocxReport'
|
||||||
},
|
},
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -735,6 +740,16 @@
|
|||||||
handleModule() {
|
handleModule() {
|
||||||
downloadFile(this.url.exportTemplate, this.$t('listOfRegulations') + this.$t('importTemplate') + '.xls', {})
|
downloadFile(this.url.exportTemplate, this.$t('listOfRegulations') + this.$t('importTemplate') + '.xls', {})
|
||||||
},
|
},
|
||||||
|
ExportReportClick() {
|
||||||
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
|
if (selectedRowKeys && selectedRowKeys.length == 0) {
|
||||||
|
this.$message.warning(this.$t('pleaseSelectData'))
|
||||||
|
} else if (selectedRowKeys.length > 1) {
|
||||||
|
this.$message.warning(this.$t('OnlyOneSelected'))
|
||||||
|
} else {
|
||||||
|
downloadFile(this.url.ExportReportUrl, this.$t('listOfRegulations') + this.$t('ExportReport') + '.docx', { id: selectedRowKeys.join(',') })
|
||||||
|
}
|
||||||
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
let query = {
|
let query = {
|
||||||
@@ -824,7 +839,7 @@
|
|||||||
changeInterface() {
|
changeInterface() {
|
||||||
let _this = this
|
let _this = this
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
width:760,
|
width: 760,
|
||||||
content: _this.$t('NoteConfirmTheChange'),
|
content: _this.$t('NoteConfirmTheChange'),
|
||||||
onOk() {
|
onOk() {
|
||||||
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||||
|
|||||||
Reference in New Issue
Block a user